﻿// ***********************************************************************
// Assembly         : OSS.Earth
// Author           : tian_
// Created          : 06-26-2019
//
// Last Modified By : tian_
// Last Modified On : 10-30-2019
// ***********************************************************************
// <copyright file="ProjectPlanningCmd.cs" company="">
//     Copyright ©  2017
// </copyright>
// <summary></summary>
// ***********************************************************************
using System.IO;
using System.Reflection;
using ZFGK.Addins;
using ZFGK.Utility;

namespace OSS.Earth.Commands.HelpCmds
{
    /// <summary>
    /// Class ProjectPlanningCmd.
    /// </summary>
    /// <seealso cref="ZFGK.Addins.IExtendCommand" />
    public class ProjectPlanningCmd : IExtendCommand
    {
        /// <summary>
        /// Executes the specified command data.
        /// </summary>
        /// <param name="cmdData">The command data.</param>
        /// <param name="message">The message.</param>
        /// <returns>CmdResult.</returns>
        public CmdResult Execute(ExtendCmdData cmdData, ref string message)
        {
            var path = Path.Combine(Assembly.GetExecutingAssembly().FolderPath(), "help", "项目规划.xls");
            System.Diagnostics.Process.Start(path);
            return CmdResult.Succeed;
        }
    }
}
